import request from '@/router/axios';
import serviceList from '@/config/serviceList'
import {baseURL} from '@/api/common';

const {aihumanCore} = serviceList

export const getList = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaManager/getPageList`,
    method: 'post',
    data
  })
}

export const deleteAimeta = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaManager/deleteAimeta`,
    method: 'get',
    params
  })
}
export const changeStatus = (params) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaManager/changeStatus`,
    method: 'get',
    params
  })
}

export const updateDefaultModel = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaManager/updateDefaultModel`,
    method: 'post',
    data
  })
}
export const saveAimeta = (data) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaManager/saveAimeta`,
    method: 'post',
    data
  })
}
export const humanDetail = (id) => {
  return request({
    url: `${baseURL}api/${aihumanCore}/aimetaManager/detail`,
    method: 'get',
    params: {id}
  })
}

